Lifetime patterns of depressive symptoms in the community and among primary care attenders: an application of grade of membership analysis